﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using com.ClickCricket.bll;


public partial class Controls_OnGoingSeries : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<com.ClickCricket.bll.Series> _seriesList = SeriesService.Instance.getOnGoingSeries();

        for (int i = 0; i < _seriesList.Count; i++)
        {
            LinkButton l = new LinkButton();
            l.Text = _seriesList[i].SeriesName;
            l.PostBackUrl = "~/Series.aspx?SeriesID=" + _seriesList[i].SeriesID;
            this.Controls.Add(l);
            this.Controls.Add(new LiteralControl("<br />"));
        }
        
    }
}
